<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var array1=new Array(1,2,3);
        var array2=[1,2,3];
        alert(array1.length);
        alert(typeof(array2));
        array1.push(8)
        array1.splice(0,0,9)
        alert(array1)
    </script>
</head>
<body>
    
</body>
</html>